package com.xteam.xnetworkdisk.vo;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

@Data
public class UploadChunkMessageVO implements Serializable {
    private byte[] chunkFile;
    private String md5;
    private Integer folderId;
    private Integer chunkIndex;
    private Integer chunks;
    private String fileName;
    private Long fileSize;


    public UploadChunkMessageVO(byte[] chunkFile, String md5, Integer folderId, Integer chunkIndex, Integer chunks, String fileName, Long fileSize) {
        this.chunkFile = chunkFile;
        this.md5 = md5;
        this.folderId = folderId;
        this.chunkIndex = chunkIndex;
        this.chunks = chunks;
        this.fileName = fileName;
        this.fileSize = fileSize;
    }

}
